package com.tinycloud.miracll.product.service.impl;

import java.util.List;

import com.tinycloud.common.datasource.annotation.Slave1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tinycloud.miracll.product.mapper.ErpQCLineLimitViewMapper;
import com.tinycloud.miracll.product.domain.ErpQCLineLimitView;
import com.tinycloud.miracll.product.service.IErpQCLineLimitViewService;

/**
 * 品管号产线限定视图Service业务层处理
 * 
 * @author tiny
 * @date 2022-06-16
 */
@Service
@Slave1
public class ErpQCLineLimitViewServiceImpl implements IErpQCLineLimitViewService {
    @Autowired
    private ErpQCLineLimitViewMapper erpQCLineLimitViewMapper;

    /**
     * 查询品管号产线限定视图
     * 
     * @param qcNum 品管号产线限定视图主键
     * @return 品管号产线限定视图
     */
    @Override
    public ErpQCLineLimitView selectErpQCLineLimitViewByQcNum(String qcNum) {
        return erpQCLineLimitViewMapper.selectErpQCLineLimitViewByQcNum(qcNum);
    }

    /**
     * 查询品管号产线限定视图列表
     * 
     * @param erpQCLineLimitView 品管号产线限定视图
     * @return 品管号产线限定视图
     */
    @Override
    public List<ErpQCLineLimitView> selectErpQCLineLimitViewList(ErpQCLineLimitView erpQCLineLimitView) {
        return erpQCLineLimitViewMapper.selectErpQCLineLimitViewList(erpQCLineLimitView);
    }

    /**
     * 新增品管号产线限定视图
     * 
     * @param erpQCLineLimitView 品管号产线限定视图
     * @return 结果
     */
    @Override
    public int insertErpQCLineLimitView(ErpQCLineLimitView erpQCLineLimitView) {
        return erpQCLineLimitViewMapper.insertErpQCLineLimitView(erpQCLineLimitView);
    }

    /**
     * 修改品管号产线限定视图
     * 
     * @param erpQCLineLimitView 品管号产线限定视图
     * @return 结果
     */
    @Override
    public int updateErpQCLineLimitView(ErpQCLineLimitView erpQCLineLimitView) {
        return erpQCLineLimitViewMapper.updateErpQCLineLimitView(erpQCLineLimitView);
    }

    /**
     * 批量删除品管号产线限定视图
     * 
     * @param qcNums 需要删除的品管号产线限定视图主键
     * @return 结果
     */
    @Override
    public int deleteErpQCLineLimitViewByQcNums(String[] qcNums) {
        return erpQCLineLimitViewMapper.deleteErpQCLineLimitViewByQcNums(qcNums);
    }

    /**
     * 删除品管号产线限定视图信息
     * 
     * @param qcNum 品管号产线限定视图主键
     * @return 结果
     */
    @Override
    public int deleteErpQCLineLimitViewByQcNum(String qcNum) {
        return erpQCLineLimitViewMapper.deleteErpQCLineLimitViewByQcNum(qcNum);
    }
}
